import React from "react";
import ReactDOM from "react-dom";
import DownloadButton from "./components/download-button";

class App extends React.Component {
  render() {
    return <DownloadButton />;
  }
}

window.onload = () => {
    const containerEl = document.createElement("div");
    containerEl.className = "extract-articles"
    containerEl.style = "display:flex;align-items:center;justify-content:center;"

    const collection = document.getElementById("articles-collection")
    collection.parentNode.insertBefore(containerEl, collection.nextSibling)

    ReactDOM.render(<App />, containerEl);
};
